package com.mycjj.android.adapter;

import android.content.Context;
import android.graphics.Typeface;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.mycjj.android.widget.wheel.adapter.ArrayWheelAdapter;

public class ProviceCityAreaAdapter extends ArrayWheelAdapter<String> {
	private int currentItem;
	private int currentValue;

	public ProviceCityAreaAdapter(Context context, String[] items, int current) {
		super(context, items);
		this.currentValue = current;
	}

	public void setCurrentValue(int value) {
		this.currentValue = value;
	}

	@Override
	protected void configureTextView(TextView view) {
		super.configureTextView(view);
		// if (currentItem == currentValue) {
		// view.setTextColor(0xFF0000F0);
		// }
		view.setTypeface(Typeface.SANS_SERIF);
	}

	@Override
	public View getItem(int index, View convertView, ViewGroup parent) {
		currentItem = index;
		return super.getItem(index, convertView, parent);
	}

}
